package design.mode.finiteState.item3;

/**
 * /**
 *
 * @author ZhongMingde on 2021/11/20
 */

public class SuperMachine implements IMario {

  private MarioStateMachine stateMachine;

  public SuperMachine(MarioStateMachine stateMachine) {
    this.stateMachine = stateMachine;
  }

  @Override
  public State getName() {
    return null;
  }

  @Override
  public void obtainMushRoom() {

  }

  @Override
  public void obtainCape() {

  }

  @Override
  public void obtainFireFlower() {

  }

  @Override
  public void meetMonster() {
    stateMachine.setCurrentState(new SmallMario(stateMachine));
    stateMachine.setScore(stateMachine.getScore() - 100);
  }
}
